<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>网站列表</title>
    <script src="/static/js/jquery.min.js"></script>
    <style>
        body table{
            width: 100%;
            border-collapse: collapse;
        }
        body table tr th{
            min-width: 130px;
            text-align: left;
            text-indent: 5px;
            border: 1px solid #eee;
            background-color: #f8f8f8;
            color: #333;
            height: 35px;
            line-height: 35px;
        }
        body table tr th:last-child(1){
            min-width: 340px;
        }
        body table tr td{
            text-indent: 5px;
            padding: 5px 0px;
        }
        body table tbody tr:nth-child(odd) td{
            background-color: #e5e5e5;
            color: #666;
            border:1px solid #82d6f7;
        }
        body table tbody tr:nth-child(even) td{
            background-color: #f5f5f5;
            color: #999;
            border:1px solid #3399aa;
        }
        body table tr td a{
            color:#36bef0;
            display: inline-block;
            margin: 0px 3px;
        }
    </style>
    <script>
        function set_config(id){
            $.ajax({
                url:'/home/config/web',
                type: 'post', // 请求类型，可以是 'GET' 或 'POST'  
                dataType: 'json', // 预期服务器返回的数据类型  
                data:{id:id},
                success: function(res) { 
                    
                }
            });
        }
    </script>
</head>
<body>
    <table>
        <thead>
            <tr>
                <th><input name="all" id="all" type="checkbox"></th>
                <th>网站</th>
                <th>名称</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            {volist name="list" id="value"}
            <tr>
                <td><input type="checkbox" value="{$value.id}" name="all"></td>
                <td>{$value.web}</td>
                <td>{$value.name}</td>
                <td>{eq name="value.web" value="$website.web"}选中{else}未选中{/eq}</td>
                <td>
                    <a href="/home/info/web?id={$value.id}">修改</a>
                    <a href="/home/config/web?id={$value.id}">选定</a>
                </td>
            </tr>
            {/volist}
        </tbody>
        <tfoot>
            <tr>
                <td colspan="5">
                    {$list|raw}
                </td>
            </tr>
        </tfoot>
    </table>
</body>
</html>